package com.mike.employment.dao;

import org.springframework.stereotype.Repository;

import com.mike.employment.base.BaseDao;
import com.mike.employment.po.Offer;

@Repository
public interface OfferDao extends BaseDao<Offer>{

	Long countByStatus(Integer status); 
	Long countByApply_Resume_Creater_id(Long accountId); // 学生收到offer
	Long countByStatusAndApply_Resume_Creater_id(Integer status, Long accountId);   // 学生接受到offer
	Long countByStatusAndApply_Recruit_Creater_id(Integer status, Long accountId);  // 企业发放offer被接受
	Long countByApply_Recruit_Creater_id(Long accountId);// 企业发放offer
}
